<?php

use think\facade\Route;


# 资源路由 七个路由规则

Route::group('v1',function (){

    Route::post('register','user/register');
    Route::post('login','user/login');
    Route::resource('find','find');

    Route::get('logout',function(){
//        sleep(3);
       return json(['code' => 200,'msg' => 'ok','data' => []]);
    });

    Route::get('follow',"find/follow")->middleware(\app\api\middleware\Check::class);


    Route::get("myFollow","User/myFollow")->middleware(\app\api\middleware\Check::class);

    Route::get('authLogin',"User/authLogin");

    Route::get('commentList','find/commentList');


});

